package marchsoft.modules.four.admin.mapper;

import marchsoft.base.BasicMapper;
import marchsoft.modules.four.admin.entity.dto.StudentDTOH5;
import marchsoft.modules.four.common.entity.Student;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface StudentMapper extends BasicMapper<Student> {

    @Select("select id,name from sys_dept")
    List<Student> selectDeptName();

    @Select("select university_id from e_student where college = #{name}")
    Long selectDeptIdByName(String name);

    @Select("select * from e_student")
    List<StudentDTOH5> selectAllStudent();

    @Select("select name from sys_dept where id = #{id} ")
    String universityName(Long id);
}
